import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from './api/http' // 拦截器设置
import './assets/stylus/index.styl'

Vue.config.productionTip = false
Vue.prototype.$axios = axios
Vue.prototype.$routerTo = function (name, query) {
  this.$router.push({
    name: name,
    query: query
  })
}

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
